package AVL;

public class Test {
	public static void main(String[] args) {
        AVL avl = new AVLImpl();
        
        int [] numeros = {41, 38, 31, 12, 19, 8, 27, 49, 45, 45};
        
        System.out.println(avl.imprimeEmOrdem());
        System.out.println();
        
        System.out.println(avl.montarArvore(numeros));
        System.out.println();

        System.out.println(avl.imprimeEmOrdem());
        System.out.println();

        System.out.println(avl.buscar(31));
        System.out.println(avl.buscar(38));
        System.out.println(avl.buscar(25));
        System.out.println(avl.buscar(19));
        System.out.println();

        System.out.println(avl.remover(8));
        System.out.println(avl.remover(41));
        System.out.println(avl.remover(60));    
        System.out.println(avl.remover(12));
        System.out.println();

        System.out.println(avl.imprimeEmOrdem());       
    }
}
